package com.dubito.pattern.创建型模式.生成器模式OR建造者模式;

/**
 * @author liliang
 * @date 2020/8/26.
 */
public class Director {

    private Builder builder = new ConcreteBuilder();

    public Product build() {
        builder.setPart1();
        builder.setPart2();
        builder.setPart3();
        return builder.builderProduct();
    }
}
